<body>
    <div style="position: fixed; background: none repeat scroll 0% 0% rgb(42, 145, 186); width: 100%; display: none;z-index: 99999;" class="headerloader0125">
        <div style="background-image: url(<?= $url_base_theme ?>/img/flyingdots.gif);
             width:100%;height:5px;background-size: 100% 4px;">&nbsp;</div>
    </div>
    <div style="position: fixed; background: none repeat scroll 0% 0% rgb(42, 145, 186); width: 100%; display: none;z-index: 99999;bottom: 0;" class="headerloader0125">
        <div style="background-image: url(<?= $url_base_theme ?>/img/flyingdots.gif);
             width:100%;height:5px;background-size: 100% 4px;">&nbsp;</div>
    </div>
    <style>
        .breadcrumb {
            margin-top: 7px;
        }
    </style>
    <?php echo View::factory('../template/' . $template . '/header')->render(); ?>
    <div class="main-container" id="main-container">
        <script type="text/javascript">
            try {
                ace.settings.check('main-container', 'fixed')
            } catch (e) {
            }
        </script>

        <div class="main-container-inner">
            <a class="menu-toggler" id="menu-toggler" href="#">
                <span class="menu-text"></span>
            </a>
            <?php echo View::factory('../template/' . $template . '/leftmenu')->render(); ?>
            <script>
                var user_id = '<?= $_user->getId() ?>';
                var session = '<?= Security::token() ?>';
            </script>
            <div class="main-content">

                <?= $content ?>
            </div><!-- /.main-content -->


        </div><!-- /.main-container-inner -->

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="icon-double-angle-up icon-only bigger-110"></i>
        </a>
    </div><!-- /.main-container -->
</body>

